//
//  XTCaseYeMianTableViewCell.m
//  BeautifulHome
//
//  Created by dlios on 15-5-13.
//  Copyright (c) 2015年 ACE. All rights reserved.
//

#import "XTCaseYeMianTableViewCell.h"

@implementation XTCaseYeMianTableViewCell
- (void)dealloc
{
    [_lable1 release];
    [_lable2 release];
    [_imageView1 release];
    [_imageView2 release];
    [super dealloc];
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.lable1 = [[UILabel alloc]init];
        //_lable1.backgroundColor = [UIColor cyanColor];
        //_lable1.text = @"现代风";
        [self.contentView addSubview:_lable1];
        [_lable1 release];
        
        self.lable2 = [[UILabel alloc]init];
        //_lable2.backgroundColor = [UIColor redColor];
        //_lable2.text = @"2015";
        [_lable2 setFont:[UIFont systemFontOfSize:10]];
        [self.contentView addSubview:_lable2];
        [_lable2 release];
        
        self.imageView1 = [[UIImageView alloc]init];
        [self.contentView addSubview:_imageView1];
        [_imageView1 release];
        
        self.imageView2 = [[UIImageView alloc]init];
        [self.contentView addSubview:_imageView2];
        [_imageView2 release];
        
    }
    
    return self;
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    //第一行文字
    _lable1.frame = CGRectMake(80, 150, self.contentView.frame.size.width - 100 , 20);
    //第二行文字
    _lable2.frame = CGRectMake(80, 170 , self.contentView.frame.size.width - 100, 20);
    //大图片
    _imageView1.frame = CGRectMake(10, 10, self.contentView.frame.size.width - 20, 140);
    //小图片
    _imageView2.frame = CGRectMake(20, self.imageView1.frame.size.height - 10, 50, 60);
    
}




/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
